package com.rpframework.website.device.domain;

import com.rpframework.core.Domain;
import com.rpframework.core.mybatis.plugin.annotation.FieldMapperAnnotation;
import com.rpframework.core.mybatis.plugin.annotation.TableMapperAnnotation;
import com.rpframework.core.mybatis.plugin.annotation.UniqueKeyType;
/**
 * 库存表
 * @author zhangli
 * @date 2016年3月25日 下午5:30:46
 * relativeId : 0代表平台库存 其它的是相关物业的id
 */
@TableMapperAnnotation(tableName = "t_goods_stock", uniqueKeyType = UniqueKeyType.Single, uniqueKey = "id")
public class GoodsStock extends Domain{
	private static final long serialVersionUID = 4178996028162534134L;
	/**
	 * 
	 */
	@FieldMapperAnnotation 
	Integer id;
	/**
	 * 商品id
	 */
	@FieldMapperAnnotation 
	Integer goodsId;
	
	Goods goods;
	/**
	 * 所属部门0代表平台  物业id
	 */
	@FieldMapperAnnotation 
	Integer relativeId;
	/**
	 * 警示数量
	 */
	@FieldMapperAnnotation 
	Integer rm;
	/**
	 * 总数
	 */
	@FieldMapperAnnotation 
	Double amount;
	/**
	 * 商品积分
	 */
	@FieldMapperAnnotation 
	Integer goodsPoint;
	/**
	 * 单位
	 * 数据字典 goods.unit.1
	 */
	@FieldMapperAnnotation 
	Integer unit;
	/**
	 * 规格
	 */
	@FieldMapperAnnotation 
	String spec;
	/**
	 * 型号
	 */
	@FieldMapperAnnotation 
	String model;
	/**
	 * 商品名称
	 */
	@FieldMapperAnnotation 
	String goodsName;
	/**
	 * 商品图片
	 */
	@FieldMapperAnnotation 
	String goodsUrlList;
	/**
	 * 商品原价
	 */
	@FieldMapperAnnotation 
	Double goodsOldPrice;
	/**
	 * 商品折扣价
	 */
	@FieldMapperAnnotation 
	Double goodsDisPrice;
	/**
	 * 创建时间
	 */
	@FieldMapperAnnotation 
	Long createTime;
	/**
	 * 修改时间
	 */
	@FieldMapperAnnotation 
	Long modifyTime;
	/**
	 * 状态 1正常 2禁用
	 */
	@FieldMapperAnnotation 
	Integer state;
	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * @return the goodsId
	 */
	public Integer getGoodsId() {
		return goodsId;
	}
	/**
	 * @return the relativeId
	 */
	public Integer getRelativeId() {
		return relativeId;
	}
	/**
	 * @return the amount
	 */
	public Double getAmount() {
		return amount;
	}
	/**
	 * @return the unit
	 */
	public Integer getUnit() {
		return unit;
	}
	/**
	 * @return the spec
	 */
	public String getSpec() {
		return spec;
	}
	/**
	 * @return the model
	 */
	public String getModel() {
		return model;
	}
	/**
	 * @return the createTime
	 */
	public Long getCreateTime() {
		return createTime;
	}
	/**
	 * @return the modifyTime
	 */
	public Long getModifyTime() {
		return modifyTime;
	}
	/**
	 * @return the state
	 */
	public Integer getState() {
		return state;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * @param goodsId the goodsId to set
	 */
	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}
	/**
	 * @param relativeId the relativeId to set
	 */
	public void setRelativeId(Integer relativeId) {
		this.relativeId = relativeId;
	}
	/**
	 * @param amount the amount to set
	 */
	public void setAmount(Double amount) {
		this.amount = amount;
	}
	/**
	 * @param unit the unit to set
	 */
	public void setUnit(Integer unit) {
		this.unit = unit;
	}
	/**
	 * @param spec the spec to set
	 */
	public void setSpec(String spec) {
		this.spec = spec;
	}
	/**
	 * @param model the model to set
	 */
	public void setModel(String model) {
		this.model = model;
	}
	/**
	 * @param createTime the createTime to set
	 */
	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}
	/**
	 * @param modifyTime the modifyTime to set
	 */
	public void setModifyTime(Long modifyTime) {
		this.modifyTime = modifyTime;
	}
	/**
	 * @param state the state to set
	 */
	public void setState(Integer state) {
		this.state = state;
	}
	/**
	 * @return the goods
	 */
	public Goods getGoods() {
		return goods;
	}
	/**
	 * @param goods the goods to set
	 */
	public void setGoods(Goods goods) {
		this.goods = goods;
	}
	/**
	 * @return the goodsName
	 */
	public String getGoodsName() {
		return goodsName;
	}
	/**
	 * @return the goodsUrlList
	 */
	public String getGoodsUrlList() {
		return goodsUrlList;
	}
	/**
	 * @return the goodsOldPrice
	 */
	public Double getGoodsOldPrice() {
		return goodsOldPrice;
	}
	/**
	 * @return the goodsDisPrice
	 */
	public Double getGoodsDisPrice() {
		return goodsDisPrice;
	}
	/**
	 * @param goodsName the goodsName to set
	 */
	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	/**
	 * @param goodsUrlList the goodsUrlList to set
	 */
	public void setGoodsUrlList(String goodsUrlList) {
		this.goodsUrlList = goodsUrlList;
	}
	/**
	 * @param goodsOldPrice the goodsOldPrice to set
	 */
	public void setGoodsOldPrice(Double goodsOldPrice) {
		this.goodsOldPrice = goodsOldPrice;
	}
	/**
	 * @param goodsDisPrice the goodsDisPrice to set
	 */
	public void setGoodsDisPrice(Double goodsDisPrice) {
		this.goodsDisPrice = goodsDisPrice;
	}
	/**
	 * @return the goodsPoint
	 */
	public Integer getGoodsPoint() {
		return goodsPoint;
	}
	/**
	 * @param goodsPoint the goodsPoint to set
	 */
	public void setGoodsPoint(Integer goodsPoint) {
		this.goodsPoint = goodsPoint;
	}
	public Integer getRm() {
		return rm;
	}
	public void setRm(Integer rm) {
		this.rm = rm;
	}
	
}
